﻿using Stu_sys.Entity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Stu_sys.Models
{
    public class ClassRoomViewModel
    {
        [Display(Name ="教室id")]
        public int ClassRoomId { get; set; }
        [Display(Name = "教室名称")]
        public string? RoomName { get; set; }
        [Display(Name = "位置")]
        public string? Position { get; set; }

        [Display(Name="使用班级")]
        public string ClassName { get; set; }

        [Display(Name = "容量")]
        public int Capacity { get; set; }
        [Display(Name = "描述")]
        public string? Description { get; set; }
        //创建时间
        [Display(Name = "创建时间")]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public DateTime CreateTime { get; set; }

        //修改时间
        [Display(Name = "修改时间")]
        [DatabaseGenerated(DatabaseGeneratedOption.Computed)]
        public DateTime UpdateTime { get; set; }
    }
}
